module PolyPath
  def poly_path(base, polymorph)
    # :photoable_type => @photoable.class.to_s.downcase.pluralize, :photoable_id => @photoable.id, :id => @photo.id
    path = {}
    path[:id] = base.id
    path[polymorph << "type"] = base[polymorph << "type"].to_s.downcase.pluralize
    path[polymorph << "id"] = base[polymorph << "id"]
    path
  end
end